package com.tql.mall.user.client;

import com.tql.mall.model.customer.Customer;
import com.tql.mall.model.customer.CustomerAddr;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("service-user")
public interface UserFeignClient {


    /**
     * 根据用户id获取用户地址列表
     *
     * @param customerId
     * @return
     */
    @GetMapping("/user/api/inner/getCustomerAddrList/{customerId}")
    public List<CustomerAddr> getCustomerAddrList(@PathVariable Long customerId);


    @GetMapping("/user/api/inner/getCustomer/{customerId}")
    public Customer getCustomer(@PathVariable Long customerId);


}
